package liang.jiaxin.com.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author Jrxsr
 * @since 2019-04-13
 */
@ApiModel("")
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("resourceInfo")
public class ResourceInfo extends Model<ResourceInfo> {

    private static final long serialVersionUID = 1L;


    /**
     * 自增id
     */
    @ApiModelProperty(value = "自增id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 资源地址
     */
    @ApiModelProperty(value = "资源地址")
    private String url;
    /**
     * 资源类型(1.图片2.音频文件3.视频文件4.其他文件)
     */
    @ApiModelProperty(value = "资源类型(1.图片2.音频文件3.视频文件4.其他文件)")
    private Long type;
    /**
     * 资源加密/解密key
     */
    @ApiModelProperty(value = "资源加密/解密key")
    private String keyd;
    /**
     * 创建人
     */
    @ApiModelProperty(value = "创建人")
    @TableField("createOperator")
    private String createOperator;
    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    @TableField("createDatetime")
    private Date createDatetime;
    /**
     * 更新人
     */
    @ApiModelProperty(value = "更新人")
    @TableField("updateOperator")
    private String updateOperator;
    /**
     * 更新时间
     */
    @ApiModelProperty(value = "更新时间")
    @TableField("updateDatetime")
    private Date updateDatetime;


    public static final String ID = "id";

    public static final String URL = "url";

    public static final String TYPE = "type";

    public static final String KEY = "key";

    public static final String CREATEOPERATOR = "createOperator";

    public static final String CREATEDATETIME = "createDatetime";

    public static final String UPDATEOPERATOR = "updateOperator";

    public static final String UPDATEDATETIME = "updateDatetime";

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
